package com.feng.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页接口响应")
public class PageResult <T>{

    /**
     * 总记录数
     */
    @ApiModelProperty("总记录数")
    private Long total;
    @ApiModelProperty("分页数据")
    private List<T> list;

    /**
     * 总页码
     */
    @ApiModelProperty("总页码")
    private Long pages;

}
